import Vue from 'vue';
import App from './App';
import { sync } from 'vuex-router-sync';
import router from './router';
import store from './store';
import i18n from './i18n/index';
import iView from 'iview';
import base from './plugins/base';
import 'iview/dist/styles/iview.css';
import './styles/common.less';
import './styles/components/index.less';
import './filters/filters';

Vue.config.productionTip = false;

if (process.env.NODE_ENV == 'development') {
	require('./mock');
}
 
Vue.use(i18n);
Vue.use(base);
Vue.use(iView);

sync(store, router);

new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App }
});